package com.system.AttendanceCherkDepartment.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

@Entity
@Table(name="t_attendanceSum")
public class AttendanceSum {
	private Long id;
	private Long empId;//员工id
	private Date time;
	private Long totalAbsence;//缺席次数
	private Long totalOvertime;//加班次数
	private Long totalLeave;//请假次数
	private Long totalVacation;//休假次数
	private Long totalscore;//奖罚总计
	//get
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return id;
	}
	public Long getEmpId() {
		return empId;
	}
	@JsonFormat(pattern = "yyyy/MM",timezone = "GMT+8")
	public Date getTime() {
		return time;
	}
	public Long getTotalAbsence() {
		return totalAbsence;
	}
	public Long getTotalOvertime() {
		return totalOvertime;
	}
	public Long getTotalLeave() {
		return totalLeave;
	}
	public Long getTotalVacation() {
		return totalVacation;
	}
	public Long getTotalscore() {
		return totalscore;
	}
	//set
	public void setId(Long id) {
		this.id = id;
	}
	public void setEmpId(Long empId) {
		this.empId = empId;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public void setTotalAbsence(Long totalAbsence) {
		this.totalAbsence = totalAbsence;
	}
	public void setTotalOvertime(Long totalOvertime) {
		this.totalOvertime = totalOvertime;
	}
	public void setTotalLeave(Long totalLeave) {
		this.totalLeave = totalLeave;
	}
	public void setTotalVacation(Long totalVacation) {
		this.totalVacation = totalVacation;
	}
	public void setTotalscore(Long totalscore) {
		this.totalscore = totalscore;
	}
	@Override
	public String toString() {
		return "AttendanceSum [id=" + id + ", empId=" + empId + ", time=" + time + ", totalAbsence=" + totalAbsence
				+ ", totalOvertime=" + totalOvertime + ", totalLeave=" + totalLeave + ", totalVacation=" + totalVacation
				+ ", totalscore=" + totalscore + "]";
	}
}
